package com.example.flower_shop.vo.cart;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CartReq {
    @Schema(description = "购物车id")
    private Long id;
    @Schema(description = "商品id")
    @NotNull(message = "商品id不能为空")
    private Long productId;
    @Schema(description = "商品数量")
    @NotNull(message = "商品数量不能为空")
    private Integer productNum;
}
